package com.cy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
public class NacosConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(NacosConsumerApplication.class);
    }


    //使用RestFul风格的要求，进行controller的访问控制
    @Bean//添加到容器中
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }


}
